package com.cykj.enterprise.mapper;

import com.cykj.common.entity.InterviewDetailDO;
import com.cykj.common.entity.UserDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SelfMapper {
    List<InterviewDetailDO> getInterviews(@Param("hrId") int hrId);

    int updateInterview(@Param("bookingId")Integer id,@Param("status") int status);

    List<UserDO> getCollectedUsers(@Param("hrId")int hrId);

    int delCollectedUser(@Param("userId")int userId,@Param("hrId") int hrId);

    int collectUser(@Param("userId")int userId,@Param("hrId") int hrId);

    int delBlockUser(@Param("userId")int userId, @Param("hrId")int hrId);

    int blockUser(@Param("userId")int userId, @Param("hrId")int hrId);

    List<UserDO> getBlockUsers(@Param("hrId")int hrId);

    int addInterviews(InterviewDetailDO interview);
}
